# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libolecf-python
_pkgname=libolecf
pkgver=20240427
pkgrel=3
pkgdesc='Library and tools to access the OLE 2 Compound File (OLECF) format.'
url='https://pypi.org/project/libolecf-python/#files'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-python-$pkgver.tar.gz")
sha512sums=('c8705b40ea9c6de9fae32cd75aa3fd21dde96f9b741e2f0ee3f9efde6971db6ddd76612014563054a9e4d264a2a218fa30078593e9a116a3c22cde9461d7c00d')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

